package ecitys.gcs

import ecitys.commons.Entidade;
import ecitys.commons.Municipio;
import ecitys.commons.Uf;

class ResponsavelSefip {
	String cpfCnpjResponsavelSefip
	int tipoDeInscricao
	String nomeDoResponsavelSefip
	String nomeContatoSefip
	String logradouro
	String numeroLogradouro
	String bairro
	String cep
	String codigoDDD
	String numeroTelefone
	String numeroFax
	String enderecoSite
	Uf uf
	Municipio cidade
	
    String toString(){
		nomeDoResponsavelSefip
	}
	static mapping = {
		table schema:"gcs"
	}
	static constraints = {
		cpfCnpjResponsavelSefip(maxSize:11, blank:false, unique:true, nullable:false)
		tipoDeInscricao(blank:false, nullable:false)
		nomeDoResponsavelSefip(maxSize:30, blank:false, nullable:false)
		nomeContatoSefip(maxSize:20, blank:false, nullable:false)
		logradouro(maxSize:50, blank:false, nullable:true)
		numeroLogradouro(maxSize:5, blank:false, nullable:true)
		bairro(maxSize:20, blank:false, nullable:true)
		cep(maxSize:8, nullable:true)
		codigoDDD(maxSize:2, nullable:true)
		numeroTelefone(maxSize:8, nullable:true)
		numeroFax(maxSize:8, nullable:true)
		enderecoSite(url:true, nullable:true)
		uf(blank:false, nullable:true)
		cidade(blank:false, nullable:true)
		
    }
}
